# 1
# result = input("请输入内容");
# print(type(result));
# print(result);


# 2
# content = input("请输入内容");
# result = eval(content);
# print(type(result));
# print(result);


#3
# min = 5
# sec = 8
# print("%02d,%02d"%(min,sec))


#4
# score = 20
# if score >=60:
#     print("及格")
# print('完毕')


#5
# score = 91
# if 90<score<100:
#     print("优秀")
# elif 80<score <90:
#     print("良好")
# elif 70<score<80:
#     print("一般")
# else:
#     print("不及格")
# print("完毕")


#6
# num  = 0
# while num < 10:
#     print(num)
#     num += 1
# else:
#     print("循环结束")


#7
# say = "可以吃法咯"
# for s in say:
#     print(s)
# else:
#     print('变量正常结束')

#8
# print(round(9.2))
# print(round(9.6))
# import  math
# print(math.ceil(9.2))
# print(math.floor(9.2))

#9
# import random
# #取[3,4]区间的小数包含3，4
# print(random.uniform(3,4))
# #取[0,1)区间的小数包含0
# print(random.random())
# #取[3,6]区间的整数，包含3，6
# print(random.randint(3,6))

#10字符串是不可变的字符集合，列表是可变的字符集合
# #10.1
# myList = [1,True,'hello',12.2]
# print(myList,type(myList))

#10.2列表生成示
# numList = range(1,99)
# print(numList,type(numList))

#10.3列表推导
# nums = [1,4,9,15]
# newNums = [n ** 2 for n in nums if n % 2 != 0]
# print(newNums)

# #11.1 append
# nums =[1,2,3,4,5]
# print(nums.append(6))
# print(nums)


# #11.2 insert
# nums =[1,2,3,4,5]
# nums.insert(0,6)
# print(nums)

#11.3  extend拼接一个可迭代的集合
# nums1 =[1,2,3,4,5]
# nums2 = [6,7,8,9]
# nums1.extend(nums2)
# print(nums1)


#11.4 extend是一个集合和一个集合的拼接
# nums = [1,3,9,11]
# hello = "hello"
# nums.extend(hello)
# print(nums) #[1, 3, 9, 11, 'h', 'e', 'l', 'l', 'o']


#11.5 + 号只能是一个列表和一个列表的拼接 "num1 + hello"是不可以的
# nums1 = [1,2,3,4,5]
# nums2 = [6,7,8,9,10]
# print(nums1+nums2)

#12.1 del是一个语句
# num = [1,2,3,4,5]
# del num[2]
# print(num)

#12.2 按指定下标删除
# num = [1, 2, 3, 4, 5]
# num.pop(2)
# print(num)

#12.3  按指定对象删除,且删除最前面的第一个
num = [1, 2, 3, 4, 5,3]
num.remove(3)
print(num)



















